#include "mco.h"

/*****************************************************************************************************
** Function name: 					MCO_GPIO_Config
** Descriptions:					MCO引脚配置初始化
**								    在F103系列中MCO只有一个,即PA8
** input parameters:				
** output parameters: 			
** Returned value:
** Created by:							zzh
** Created date:						2019-3-28
**--------------------------------------------------------------------------------------------------------
** Modified by: 						
** Modified date: 					
******************************************************************************************************/
void MCO_GPIO_Config(void)
{
	GPIO_InitTypeDef GPIO_InitStructure;
	RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);

	GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8;
	GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
	GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

	GPIO_Init(GPIOA, &GPIO_InitStructure);

	RCC_MCOConfig(RCC_MCO_SYSCLK);
}



